Skip to content

Rollback centra font#2093

Merged
AndyMBridges merged 2 commits into
mainfrom
rollback-centra-font
Jun 18, 2025
Merged

Rollback centra font#2093
AndyMBridges merged 2 commits into
mainfrom
rollback-centra-font

Conversation

@AndyMBridges

Copy link
Copy Markdown
Contributor

Description

  • Revert back to Euclid font

Copilot AI review requested due to automatic review settings June 17, 2025 15:36
@AndyMBridges AndyMBridges requested review from a team as code owners June 17, 2025 15:36
@vercel

vercel Bot commented Jun 17, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
metamask-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 17, 2025 3:37pm

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR rolls back the primary font from MM Centra to Euclid Circular B by adding the necessary font-face declarations and updating all references.

  • Introduces Euclid Circular B @font-face rules (regular, medium, bold, italic)
  • Adds a new CSS variable --font-mm-euclid and switches base font-family to it
  • Updates all var(--font-mm-centra) references to var(--font-mm-euclid)

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

File Description
src/scss/theme/_fonts.scss Added Euclid Circular B @font-face declarations
src/scss/custom.scss Defined new --font-mm-euclid and swapped usages
src/scss/commons/_typescale.scss Changed .font-primary to use Euclid variable
src/scss/app.scss Updated global font-family to Euclid variable
Comments suppressed due to low confidence (2)

src/scss/theme/_fonts.scss:61

  • The Medium font reference omits the -WebXL suffix used by the Regular and Bold files; ensure the filename matches the actual asset to avoid 404s.
  src: url('/fonts/EuclidCircularB/EuclidCircularB-Medium.ttf') format('truetype');

src/scss/custom.scss:704

  • [nitpick] This change switches from double to single quotes for an empty string. For consistency with the rest of the codebase (which uses double quotes), consider reverting to "" or aligning all content strings.
      content: '';

font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/fonts/EuclidCircularB/EuclidCircularB-Regular-WebXL.ttf') format('truetype');

Copilot AI Jun 17, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a WOFF2 source before the TTF for better compression and browser support, e.g., url(.../Regular-WebXL.woff2) format('woff2').

Suggested change
src: url('/fonts/EuclidCircularB/EuclidCircularB-Regular-WebXL.ttf') format('truetype');
src: url('/fonts/EuclidCircularB/EuclidCircularB-Regular-WebXL.woff2') format('woff2'),
url('/fonts/EuclidCircularB/EuclidCircularB-Regular-WebXL.ttf') format('truetype');

Copilot uses AI. Check for mistakes.
@AndyMBridges AndyMBridges merged commit e9c0cfa into main Jun 18, 2025
17 of 18 checks passed
@AndyMBridges AndyMBridges deleted the rollback-centra-font branch June 18, 2025 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants